package com.my.study.mapstruct.entity;

import java.util.List;

/**
 * 实体对象
 * 我们业务逻辑使用到的业务模型，它的字段和方法应该和业务语言保持一致，且与持久化无关。
 * 实体对象的生命周期仅存于内存中，不需要序列化和持久化！
 *
 * @author: yidujun
 * @create: 2021/06/23 15:47
 */
public class Order {
    private Long orderId;
    private String orderName;
    private List<Integer> nums;

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getOrderName() {
        return orderName;
    }

    public void setOrderName(String orderName) {
        this.orderName = orderName;
    }

    public List<Integer> getNums() {
        return nums;
    }

    public void setNums(List<Integer> nums) {
        this.nums = nums;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderId=" + orderId +
                ", orderName='" + orderName + '\'' +
                ", nums=" + nums +
                '}';
    }
}
